import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "element-ui/lib/theme-chalk/display.css"; //element 隐藏类
import "@/styles/index.scss"; // global css

import "./plugins/element.js";
import moment from "moment";
import VueClipboard from "vue-clipboard2";
import "./rbac"; // 权限控制
import "./icons"; // icon
import './assets/fonts/font.css'
Vue.use(VueClipboard);
//  全局过滤器 时间戳
Vue.filter("dateFormatMin", function(dateStr, pattern = "YYYY-MM-DD HH:mm") {
  if (dateStr && dateStr != "0") {
    return moment(Number(dateStr)).format(pattern);
  } else {
    return "";
  }
});
//  全局过滤器 时间戳
Vue.filter("dateFormatSec", function(dateStr, pattern = "YYYY-MM-DD HH:mm:ss") {
  if (dateStr && dateStr != "0") {
    return moment(Number(dateStr)).format(pattern);
  } else {
    return "";
  }
});


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
